package com.qfmy.model.entity.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity.common
 * @date 2025/11/24
 * @description APP版本更新实体类（记录APP发布的版本更新信息）
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuppressWarnings("all")
public class AppUpdate {

    @Schema(description = "主键，自增ID")
    private Integer id;

    @Schema(description = "版本号")
    private String version;

    @Schema(description = "更新描述")
    private String updateDesc;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "发布状态：0=未发布，1=灰度发布，2=全网发布")
    private Integer status;

    @Schema(description = "灰度uid（指定灰度发布的用户ID列表）")
    private String grayscaleUid;

    @Schema(description = "文件类型：0=本地文件，1=外链")
    private Integer fileType;

    @Schema(description = "外链地址（文件类型为1时生效）")
    private String outerLink;

}